<?php
/*
|--------------------------------------------------------------------------
| 企业端路由 Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', 'Home\IndexController@index')->name('index');
Route::get('/fenbiao/index', 'Home\FenbiaoController@index')->name('fenbiao.index');

//微信授权登录
Route::any('/wechat/server', 'WeChatController@serve');//微信服务器验证
Route::any('/wechat/auth', 'WeChatController@user')->middleware('wechat.oauth');//手机端获取用户信息


Route::group(['namespace' => 'Home', 'prefix' => 'home'], function () {
    //广播
    Route::get('/news/index', 'NewsController@index')->name('home.news.index');
    Route::get('/echo','NewsController@echo')->name('home.news.echo');
    Route::get('/push/message','NewsController@pushMessage')->name('home.news.message');
    Route::get('/push/private','NewsController@privateMessage')->name('home.news.private');
    //秒杀
    Route::get('/goods/add','MiaoshaController@storageGoods')->name('home.goods.add');
    Route::get('/goods/kill','MiaoshaController@secondsKill')->name('home.goods.kill');

});

